package ru.susu.algebra.centralunits.alternating;

/**
 * @author akargapolov
 * @since: 14.09.2010
 */
public class SystemChecker
{

	public static void main(String[] args)
	{
		int z = 20;//4725;
		int c1 = 3;//11;
		int c2 = -2;//-10;
		int count = 0;
		for (int a = 0; a < z; a++)
		{
			for (int b = 0; b < z; b++)
			{
				int first = 2 * (a - 1) + b;
				int second = (a - 1) + c1 * b;
				int third = (a - 1) + c2 * b;
				if (first % z == 0 && second % z == 0 && third % z == 0)
				{
					System.out.println(++count + ": a = " + a + " b = " + b);
				}
			}
		}
	}

}
